<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>

<form class="form-horizontal">
	<FIELDSET sizset="3">
		<LEGEND>出库查询</LEGEND>
		<DIV class=control-group>
			<LABEL class=control-label for=unit>发货单位</LABEL>
			<DIV class=controls>
			   <input type="hidden" name="query.fields[0].name" value="contract.client.id" />
			
				<select class="input-xlarge focused"
				        name="query.fields[0].value"
				
				>
				<c:forEach items="${clients}" var="client">
				    <option value="${client.id}">${client.name}</option>
				</c:forEach>
				</select>
			</DIV>			
		</DIV>
		<DIV class=control-group>
			<LABEL class=control-label for=focusedInput>时间段</LABEL>
			<DIV class=controls>
				<select   name="query.fields[1].name"  class="input-xlarge focused">
				   <option value="month(fireDate)">按月</option>
				   <option value="quarter(fireDate)">按季度</option>
				</select>
			</DIV>
			<LABEL class=control-label for=focusedInput>时间值</LABEL>
			<DIV class=controls>
			<input 
			  name="query.fields[1].value" 	
			 class="datepicker"  readonly/>	
			</DIV>
		</DIV>
		<DIV class=form-actions>
			<BUTTON class="btn btn-primary" 
			onclick="dataSubmit(this)"
			type="button">
			<i class="icon-white icon-search"></i>
			查询</BUTTON>		
		</DIV>
	</FIELDSET>
</form>
<script type="text/javascript" src="scripts/apps/contract/search.js" ></script>